xenstore: cleanups
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Jun 2008 12:49:54 +0000 (13:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Jun 2008 12:49:54 +0000 (13:49 +0100)
commitdf8a7719e5f972641f6f6730e2bdc2ca5b584c37
treeae79e411592cb4d146bbb65cdb3445dc6463b50e
parentdeb36502454d30eff815e09a0ade1c732366ff4c
xenstore: cleanups

Attached patch uses calloc() for hash allocation.
This makes sure, the allocated memory is always initialized.
Also cleanup error handling a bit.

On *BSD avoid conflicts with BSD list macros.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/xenstore/hashtable.c
tools/xenstore/list.h